

from api.ihrm_login_api import IhrmLoginApi


def get_header():
    req_data = {"mobile": "13800000002", "password": "hm#qd@23!"}
    resp = IhrmLoginApi.login(req_data)
    header = {"Authorization":"Bearer "+resp.json().get('data')}
    print(header)
    return header

if __name__ == '__main__':
    get_header()